Skip to contentSkip to conversation

arb_gpu_shader5 piglit fail

Bug 100785 [email protected] 1 participant 16 messages Apr 25, 2017 – Jun 26, 2017

lore
Share & tools
lore

[email protected]

author Acked-by Elie Tournier Reviewed-by Kenneth Graunke
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=100785

Bug ID: 100785
Summary: [regression, bisected] arb_gpu_shader5 piglit fail
Product: Mesa
Version: git
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/r600
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]

Failing tests:

bin/arb_gpu_shader5-interpolateAtSample -auto -fbo bin/arb_gpu_shader5-interpolateAtSample-nonconst -auto -fbo

Bisection result:

eb8aa93c03ee89ffd3041d41b6293e4b282b6ce6 is the first bad commit commit eb8aa93c03ee89ffd3041d41b6293e4b282b6ce6

Author: Timothy Arceri <[email protected]>
Date:   Fri Apr 14 16:25:58 2017 +1000

glsl: disable varying packing for varying used by interpolateAt*

Currently the NIR backends depend on GLSL IR copy propagation to fix up the interpolateAt* function params after varying packing changes the shader input to a global. It's possible copy propagation might not always do what we need it too, and we also shouldn't depend on optimisations to do this type of thing for us.

I'm not sure if the same is true for TGSI, but the following commit should re-enable packing for most cases in a safer way, so we just disable it everywhere.

No change in shader-db for i965 (BDW)

Reverting the commit fixes the problem.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=100785

--- Comment #1 from Hi-Angel <[email protected]> --- Ah, a fail output:

$ LD_LIBRARY_PATH=/home/constantine/Projects/mesa/lib
LIBGL_DRIVERS_PATH=/home/constantine/Projects/mesa/lib/gallium
/home/constantine/Projects/piglit/bin/arb_gpu_shader5-interpolateAtSample -auto
-fbo
Probe color at (0,0)
  Expected: 0 255 0
  Observed: 20 195 0
PIGLIT: {"result": "fail" }
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100785

--- Comment #2 from Timothy Arceri <[email protected]> --- Does it work if you set:

R600_DEBUG=nosb

Also it would be helpful if you could attach a before and after shader dump using.

R600_DEBUG=vs,ps

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100785

--- Comment #3 from Hi-Angel <[email protected]> --- (In reply to Timothy Arceri from comment #2)

Quoted 3 lines

Does it work if you set:

R600_DEBUG=nosb

Yeah, this way it does pass.

Quoted 4 lines

Also it would be helpful if you could attach a before and after shader dump using.

R600_DEBUG=vs,ps

Attaching.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100785

--- Comment #4 from Hi-Angel <[email protected]> --- Created attachment 131043
--> https://bugs.freedesktop.org/attachment.cgi?id=131043&action=edit
ps,vs dump HEAD

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100785

--- Comment #5 from Hi-Angel <[email protected]> --- Created attachment 131044
--> https://bugs.freedesktop.org/attachment.cgi?id=131044&action=edit
ps,vs dump HEAD with reverted eb8aa93c03

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100785

--- Comment #6 from Timothy Arceri <[email protected]> --- Thanks. Looks like a bug in sb optimisations so the output of R600_DEBUG=vs,ps,nosb on HEAD would also be useful.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100785

--- Comment #7 from Hi-Angel <[email protected]> --- Created attachment 131062
--> https://bugs.freedesktop.org/attachment.cgi?id=131062&action=edit
ps,vs,nosb dump HEAD

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100785

--- Comment #8 from Hi-Angel <[email protected]> --- Created attachment 131063
--> https://bugs.freedesktop.org/attachment.cgi?id=131063&action=edit
ps,vs,nosb dump HEAD with reverted eb8aa93c03

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100785

--- Comment #11 from Hi-Angel <[email protected]> --- So, actually there're 4 different combinations:

                                                 | usual run | nosb  |
HEAD                                     |   fails   | passes|
HEAD eb8aa93c03 reverted |   passes  | fails |

With that said, I've attached dumps for all 4 configurations. But I do actually recall that "nosb" option was buggy, see this
https://bugs.freedesktop.org/show_bug.cgi?id=93715

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#12 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100785

--- Comment #12 from Hi-Angel <[email protected]> --- (EDIT: replaced tabs with space in the table)

So, actually there're 4 different combinations:

                         | usual run | nosb  |
HEAD                     |   fails   | passes|
HEAD eb8aa93c03 reverted |   passes  | fails |

With that said, I've attached dumps for all 4 configurations. But I do actually recall that "nosb" option was buggy, see this
https://bugs.freedesktop.org/show_bug.cgi?id=93715

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#13 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100785

--- Comment #13 from Hi-Angel <[email protected]> --- Possible fix
https://lists.freedesktop.org/archives/mesa-dev/2017-June/159872.html

It solves the problem, but needs more work to exclude other bugs of alike type.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#14 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100785

--- Comment #14 from Hi-Angel <[email protected]> --- Created attachment 132157
--> https://bugs.freedesktop.org/attachment.cgi?id=132157&action=edit
fix

FTR, attaching the fix. However I don't know when I get it sent to the ML because I can't finish piglit testing — GPU hangs.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#15 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100785

Hi-Angel <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #15 from Hi-Angel <[email protected]> --- Fixed by
https://cgit.freedesktop.org/mesa/mesa/commit/?id=3d466f3e9f76c91083f0cfbb8a76148bdb0d52a3

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel